package com.linkoog.devtools.http.raw_index;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.linkoog.devtools.metadata.raw_index.ClassMetadata;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import org.jetbrains.annotations.NotNull;

import java.util.List;

@Getter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class HttpServiceClass extends ClassMetadata {

    private final String sourceType;

    @JsonCreator
    public HttpServiceClass(
            @JsonProperty("filePath")@NotNull String filePath,
            @JsonProperty("psiElementOffset") int psiElementOffset,
            @JsonProperty("name")@NotNull String name,
            @JsonProperty("moduleFilePath") String moduleFilePath,
            //自定义属性
            @JsonProperty("sourceType")@NotNull String sourceType

    ) {
        super(filePath, psiElementOffset, name, moduleFilePath);
        this.sourceType = sourceType;
    }

}
